package com.gpframework.module.base.domain.req;

import com.gpframework.module.base.domain.BaseStoreConfig;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @ClassName BaseStoreConfigUpdate
 * @Author gpframework
 * @Date 2022-04-06
 * @Version 1.0.0
 * @Description 店铺基础配置（折扣、手续费等）更新请求体对象
 */
@Data
@ToString
@Validated
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
public class BaseStoreConfigUpdate extends BaseStoreConfigAdd {

    @NotNull(message = "ID不能为空")
    @ApiModelProperty(value = "ID", required = true)
    private Long baseStoreConfigId;

    /**
     * 子集
     */
    @ApiModelProperty("子集")
    private List<BaseStoreConfig> children;
}
